package com.iu.eblood.model;

import java.io.Serializable;
import javax.persistence.*;
import java.sql.Timestamp;
import java.util.List;


/**
 * The persistent class for the CATEGORY database table.
 * 
 */
@Entity
public class Category implements Serializable {
	private static final long serialVersionUID = 1L;
	private int categoryid;
	private String categorydesc;
	private String categoryname;
	private Timestamp createddate;
	private Timestamp deleteddate;
	private String isactive;
	private List<Categorylookup> categorylookups;

    public Category() {
    }


	@Id
	@GeneratedValue(strategy=GenerationType.AUTO)
	public int getCategoryid() {
		return this.categoryid;
	}

	public void setCategoryid(int categoryid) {
		this.categoryid = categoryid;
	}


	public String getCategorydesc() {
		return this.categorydesc;
	}

	public void setCategorydesc(String categorydesc) {
		this.categorydesc = categorydesc;
	}


	public String getCategoryname() {
		return this.categoryname;
	}

	public void setCategoryname(String categoryname) {
		this.categoryname = categoryname;
	}


	public Timestamp getCreateddate() {
		return this.createddate;
	}

	public void setCreateddate(Timestamp createddate) {
		this.createddate = createddate;
	}


	public Timestamp getDeleteddate() {
		return this.deleteddate;
	}

	public void setDeleteddate(Timestamp deleteddate) {
		this.deleteddate = deleteddate;
	}


	public String getIsactive() {
		return this.isactive;
	}

	public void setIsactive(String isactive) {
		this.isactive = isactive;
	}


	//bi-directional many-to-one association to Categorylookup
	@OneToMany(mappedBy="category")
	public List<Categorylookup> getCategorylookups() {
		return this.categorylookups;
	}

	public void setCategorylookups(List<Categorylookup> categorylookups) {
		this.categorylookups = categorylookups;
	}
	
}